package com.bosssoft.rbac.feign;

import com.bosssoft.rbac.model.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author MaYunFei
 * @ProjectName boss-rbac
 * @Description TODO
 * @time 2022/7/9 9:31
 */
@FeignClient(value = "feign-server")
public interface FeignServiceTest {

    @GetMapping("/test/feign")
    R<String> getTest(@RequestHeader("Authorization") String authorization);

    @PostMapping("/test/feign")
    R<String> postTest(@RequestHeader("Authorization") String authorization);

    @PutMapping("/test/feign")
    R<String> putTest(@RequestHeader("Authorization") String authorization);

}
